From: Felix Krull Date: Sun, 18 Oct 2020 15:00:28 +0000 (+0200) Subject: src: fix tests X-Git-Tag: archive/raspbian/2022.4-1+rpi1^2~9^2^2~20^2~87 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2caf0264c713a09c651a46c288da13fca0a7ac02;p=ostree.git src: fix tests --- diff --git a/rust-bindings/rust/src/sysroot_deploy_tree_opts.rs b/rust-bindings/rust/src/sysroot_deploy_tree_opts.rs index 040ab63d..1fed6026 100644 --- a/rust-bindings/rust/src/sysroot_deploy_tree_opts.rs +++ b/rust-bindings/rust/src/sysroot_deploy_tree_opts.rs @@ -48,7 +48,7 @@ mod tests { use super::*; use std::{ffi::CStr, ptr::null_mut}; - unsafe fn ptr_array_as_slice<'a, T>(ptr: *mut *mut T) -> &'a [*mut T] { + unsafe fn ptr_array_to_slice<'a, T>(ptr: *mut *mut T) -> &'a [*mut T] { let mut len = 0; while !(*ptr.offset(len)).is_null() { len += 1;